package com.wp.design.structural.decorator.v2;

public class Test {
	public static void main(String[] args) {
		AbstractBattercake battercake = new Battercake();
		battercake = new EggDecorator(battercake);
		battercake = new EggDecorator(battercake);
		battercake = new MeatDecorator(battercake);
		System.out.println(battercake.getDesc() +"价格："+battercake.cost());

	}
}
